The obvious solution would be to mount a small radar on the aircraft, one able to cover the range between the Dowding system's 5 mile accuracy and the average visual spotting range, about.
2.
For the USN, the most prevalent gunnery computer was the Ford Mark 1, later the Remote Power Control for their guns; both the USN and IJN used visual correction of shots using shell splashes or air bursts, while the USN augmented visual spotting with Radar.